﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HS.Log
{
    /// <summary>
    /// logstash format
    /// </summary>
    internal class LogstashEvent
    {
        public string App { get; set; }
        /// <summary>
        /// 版本
        /// </summary>
		public int Version { get; set; }
        /// <summary>
        /// 时间戳
        /// </summary>
		public DateTime Timestamp { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string Source_Host { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Thread_Name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string @class { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string method { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string line_number { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Level { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Logger_Name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Message { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public LogstashException Exception { get; set; }
    }
    /// <summary>
    /// 
    /// </summary>
    public class LogstashException
    {
        /// <summary>
        /// 
        /// </summary>
        public string Exception_Class { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Exception_Message { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Stacktrace { get; set; }
    }


}
